package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.dtos.ArticleInfoDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.article.vos.ArticleBehaviorVO;
import com.heima.model.mess.ArticleVisitStreamMess;

import java.util.List;

/**
 * @author brianxia
 * @version 1.0
 * @date 2022-11-10 11:38
 */
public interface ArticleService extends IService<ApArticle> {
    List<ApArticle> load(ArticleHomeDto dto, Short type);

    Long saveArticle(ArticleDto dto);

    ArticleBehaviorVO loadArticleBehavior(ArticleInfoDto dto);

    void hotArticle();

    void updateArticleBehavior(ArticleVisitStreamMess mess);
}
